package com.goktech.olala.server.dao.comment;

import com.goktech.olala.server.pojo.comment.Comment;
import java.util.List;

/**
 * @author wusq
 * 评论dao 接口
 */
public interface CommentMapper {

    /**
     * 删除对应评论
     * @param commentId
     * @return
     */
    int deleteByPrimaryKey(Long commentId);

    /**
     * 查询所有评论
     * @param comment
     * @return
     * @throws Exception
     */
    List<Comment> selectAllByExample(Comment comment) throws Exception;

    /**
     * 查询意见反馈
     * @param comment
     * @return
     * @throws Exception
     */
    List<Comment> selectByExample(Comment comment) throws Exception;

    /**
     * 查询详情
     * @param customerId
     * @return
     * @throws Exception
     */
    List<Comment> selectDetailAndCommentById(String customerId) throws Exception;

}